#include "aboutdialog.h"
#include "ui_aboutdialog.h"

AboutDialog::AboutDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::AboutDialog)
{
    ui->setupUi(this);

    setWindowTitle(tr("About"));

    QPixmap pixmap(":images/CodeReview.png");
    ui->labIcon->setPixmap(pixmap);
    ui->labIcon->setFixedSize(80, 80);
    ui->labIcon->setScaledContents(true);

    ui->plainTextEdit->appendPlainText(tr("Data Insight supports PDXP protocol and UDF protocol, as well as PDXP protocol under TCP transcoding."));
    ui->plainTextEdit->appendPlainText(("\n"));
    ui->plainTextEdit->appendPlainText(tr("Based on the user data frame feature information field. Such as: time field, fixed value field, counter field, etc."));
    ui->plainTextEdit->appendPlainText(("\n"));
    ui->plainTextEdit->appendPlainText(tr("Features:"));
    ui->plainTextEdit->appendPlainText(("\n"));
    ui->plainTextEdit->appendPlainText(tr("1. Row and column selection operations (delete, add, replace) will not add/delete single byte data."));
    ui->plainTextEdit->appendPlainText(("\n"));
    ui->plainTextEdit->appendPlainText(tr("2. According to the accumulated days and accumulated seconds in the data, extract the data of the specified time range (only extract the data transmission frame and extract the entire data field)."));
    ui->plainTextEdit->appendPlainText(("\n"));
    ui->plainTextEdit->appendPlainText(tr("3. According to different data bids, the specified type of data can be extracted, and the frame number and frame frequency of this type of data can be counted."));
    ui->plainTextEdit->appendPlainText(("\n"));
    ui->plainTextEdit->appendPlainText(tr("4. Feature code search and display, search for specific fields."));
    ui->plainTextEdit->appendPlainText(("\n"));
    ui->plainTextEdit->appendPlainText(tr("5. Select a certain frame of data and display the time of that frame of data."));
    ui->plainTextEdit->appendPlainText(("\n"));
    ui->plainTextEdit->appendPlainText(tr("6. Select certain two frames of data and compare the contents."));
    ui->plainTextEdit->appendPlainText(("\n"));
    ui->plainTextEdit->appendPlainText(tr("7. Select a piece of data, and display the position of the piece of data and the relative position of the frame head and frame end (column label)."));
    ui->plainTextEdit->appendPlainText(("\n"));
    ui->plainTextEdit->appendPlainText(tr("8. Select the data to export."));
    ui->plainTextEdit->appendPlainText(("\n"));
    ui->plainTextEdit->appendPlainText(tr("9. Search function, out-of-order judgment."));
}

AboutDialog::~AboutDialog()
{
    delete ui;
}

void AboutDialog::on_pushButton_clicked()
{
    close();
}
